CUDA_HOME = /usr/local/cuda

CXX = g++
INCLUDE = -I$(CUDA_HOME)/include -I../common
CXXFLAGS = -O3 $(INCLUDE)
AR = ar
AFLAGS = -r

TARGET = libcontainer.a
SOURCE = $(wildcard *.cpp)
OBJS = $(patsubst %.cpp, %.o, $(SOURCE))

#%.o : %.cpp %.h
#	$(CXX) -c $< -o $@
$(TARGET): $(OBJS)
	$(AR) $(AFLAGS) $(TARGET) $(OBJS)

.PHONY:clean
clean:
	$(RM) $(TARGET) $(OBJS)
